import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {RouterModule, Routes} from "@angular/router";
import {OrderSubmitComponent} from "./order-submit/order-submit.component";
import {OrderDetailsComponent} from "./order-details/order-details.component";
import {ChangeTableSettingsComponent} from "./change-table-settings/change-table-settings.component";
import {CombineTableSettingsComponent} from "./combine-table-settings/combine-table-settings.component";
import {OrderRecallComponent} from "./order-recall/order-recall.component";
import {OrderRecordComponent} from "./order-record/order-record.component";

let OrderRoutings: Routes = [
  {path: '', redirectTo: 'order-submit', pathMatch: 'full'}
  , {path: 'order-submit', component: OrderSubmitComponent} // 订单提交
  , {path: 'order-details', component: OrderDetailsComponent} // 订单详情
  , {path: 'order-recall', component: OrderRecallComponent} // 订单退菜
  , {path: 'order-record', component: OrderRecordComponent} // 订单操作记录（如：并台，换台，退菜）
  , {path: 'change-table-settings', component: ChangeTableSettingsComponent} // 换桌操作
  , {path: 'combine-table-settings', component: CombineTableSettingsComponent} // 并桌操作
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(OrderRoutings)
  ],
  declarations: []
  ,exports: [RouterModule]
})
export class OrderRoutingModule { }
